function dataSet(address){
    const data = address.filter(item => item.TopID == 0)
    // console.log(data);

    data.forEach(item => {
        item.children = []

        //添加市
        address.forEach(e => {
            if(item.ID == e.TopID){
                item.children.push(e)
            }
        })

        //市里面 添加 县

        item.children.forEach(city => {
            city.children = []

            address.forEach(i => {
                if(city.ID == i.TopID){
                    city.children.push(i)
                }
            })
        })

    })
    return data
}
exports.dataSet = dataSet